Repository navigation
Finish comparison names and argument order in remaining tests - #1237
karthiksenv wants to merge 3 commits into
Conversation
|
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1237 |
|
Hi @seanlaw, both macOS 3.11 jobs were cancelled before getting a runner. Could you retry them when you have a chance? GitHub requires repository admin rights for the retry. The full local suite is still running. Thanks! |
|
Done |
|
Thanks, @seanlaw! Both macOS 3.11 jobs passed, and the full CI matrix is green. Local validation is complete too, with 100% coverage after correcting the test interpreter. |
|
Hi @seanlaw, this is ready for review now. All 30 test and coverage jobs passed, and local coverage is 100%. Could you take a look when you have a chance? Thanks! |
| comp = func(Q, T) | ||
| npt.assert_allclose(comp, ref) | ||
| cmp_dot_product = func(Q, T) | ||
| npt.assert_allclose(cmp_dot_product, ref_dot_product) |
There was a problem hiding this comment.
We're missing all of the , atol=1.5e-07 in npt.assert_allclose
There was a problem hiding this comment.
Thanks for catching these. Added atol=1.5e-07 to all six comparisons in 7a80a3a. All nine SDP tests pass with JIT enabled and disabled, including pyFFTW, and Black and flake8 pass too.
| npt.assert_allclose(comp, ref) | ||
| ref_dot_product = naive.rolling_window_dot_product(Q, T) | ||
| cmp_dot_product = func(Q, T) | ||
| npt.assert_allclose(cmp_dot_product, ref_dot_product) |
There was a problem hiding this comment.
Added atol=1.5e-07 here in 7a80a3a too.
| ref_dot_product = naive.rolling_window_dot_product(Q, T) | ||
|
|
||
| np.testing.assert_allclose(comp, ref) | ||
| np.testing.assert_allclose(cmp_dot_product, ref_dot_product) |
There was a problem hiding this comment.
Added atol=1.5e-07 here in 7a80a3a too.
| ref_dot_product = naive.rolling_window_dot_product(Q, T) | ||
|
|
||
| np.testing.assert_allclose(comp, ref) | ||
| np.testing.assert_allclose(cmp_dot_product, ref_dot_product) |
There was a problem hiding this comment.
Added atol=1.5e-07 here in 7a80a3a too.
| ref_dot_product = naive.rolling_window_dot_product(Q, T) | ||
|
|
||
| np.testing.assert_allclose(comp, ref) | ||
| np.testing.assert_allclose(cmp_dot_product, ref_dot_product) |
There was a problem hiding this comment.
Added atol=1.5e-07 here in 7a80a3a too.
| ref_dot_product = naive.rolling_window_dot_product(Q, T) | ||
|
|
||
| np.testing.assert_allclose(comp, ref) | ||
| np.testing.assert_allclose(cmp_dot_product, ref_dot_product) |
There was a problem hiding this comment.
Added atol=1.5e-07 here in 7a80a3a too.
|
@seanlaw, the new CI run stopped before the tests: |
|
@karthiksenv While we're at it, would you mind checking all other test files and ensuring that they all have an |
Related to #1175, following Sean's invitation to take the remaining files.
Finish
ref_*andcmp_*names in the cache, chains, core, FLOSS, MAAMP, precision, and SDP tests. Chain comparisons put the computed result first and useassert_array_equalfor individual integer arrays.All 319 affected cases passed on Ubuntu with JIT disabled, CUDA simulated, and pyFFTW installed. Structural verification confirms that the four added files differ from main only by local variable names.
Validation is complete on
c207eb5: all 30 CI unit/coverage jobs passed across Ubuntu, macOS, and Windows (Python 3.11–3.15). Local./setup.sh devand./test.shran through the unit and coverage suites. The final coverage gate initially stopped at 99% with four pyFFTW tests skipped. Re-running the SDP/RNG tests through the checkout's Python, withSTUMPY_SEEDunset to cover random-seed initialization, passed all 11 cases and brought combined coverage to 100%.Review follow-up in
7a80a3a: addedatol=1.5e-07to all six SDP comparisons requested in review. All nine SDP tests passed with JIT enabled and disabled, including the pyFFTW cases, with no skips. Black and flake8 passed. CI for this follow-up stopped before running tests:generate_python_matrixhit HTTP 429 while fetching the Numba support table, followed by an uninitializeddferror in the unchangedversions.py. Retrying requires repository admin rights. See the failed job.Pull Request Checklist
./setup.sh devand the full unit/coverage suites; corrected the local interpreter for the SDP/RNG rerun and verified 100% combined coverage